package com.zhuss.opus.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.opus.opus.DetailOpusTopicVo;
import com.zhuss.opus.db.dao.gen.OpusTopicMapper;
import com.zhuss.opus.db.entity.OpusTopic;

@Mapper
public interface OpusTopicDao extends OpusTopicMapper {
	
	void create(OpusTopic record);
	
	int delete(OpusTopic record);
	
	int deleteByParent(OpusTopic record);
	
	void deleteBatch(@Param("opusTopicIdList") List<Long> opusTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	void deleteByParentBatch(@Param("opusTopicIdList") List<Long> opusTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	List<OpusTopic> listAll(@Param("area") Integer area, @Param("opusId") Long opusId);
	
	DetailOpusTopicVo detail(@Param("opusTopicId") Long opusTopicId);
	
	List<Long> listSon(@Param("opusTopicIdList") List<Long> opusTopicIdList);

	List<DetailOpusTopicVo> listTopic(@Param("opusId") Long opusId, @Param("parent") Long parent);
    
}